package com.byb.server.service.dto;


import java.io.Serializable;
import java.util.Objects;

/**
 * A DTO for the WcIsurer entity.
 */
public class WcIsurerDTO implements Serializable {

    private Long id;

    private String log;

    private String name;

    private String info;

    private String operation;

    private String shareholder;

    private String claims;

    private String phone;

    private String workTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getShareholder() {
        return shareholder;
    }

    public void setShareholder(String shareholder) {
        this.shareholder = shareholder;
    }

    public String getClaims() {
        return claims;
    }

    public void setClaims(String claims) {
        this.claims = claims;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWorkTime() {
        return workTime;
    }

    public void setWorkTime(String workTime) {
        this.workTime = workTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        WcIsurerDTO wcIsurerDTO = (WcIsurerDTO) o;
        if(wcIsurerDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), wcIsurerDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "WcIsurerDTO{" +
            "id=" + getId() +
            ", log='" + getLog() + "'" +
            ", name='" + getName() + "'" +
            ", info='" + getInfo() + "'" +
            ", operation='" + getOperation() + "'" +
            ", shareholder='" + getShareholder() + "'" +
            ", claims='" + getClaims() + "'" +
            ", phone='" + getPhone() + "'" +
            ", workTime='" + getWorkTime() + "'" +
            "}";
    }
}
